package com.hchl.org.bpm.online.form.common.enumSelf;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * @author ${author}
 * @url https://gitee.com/pucong
 * @create ${date}
 */
@ApiModel("${tableColumn.columnEnumName}")
public enum ${tableColumn.changeEnumCode} implements LouudtEnum<String> {

    <#if tableColumnEnumList?exists>
        <#list tableColumnEnumList as tableColumnEnum>
    ${tableColumnEnum.value}("${tableColumnEnum.code}", "${tableColumnEnum.value}")<#if !tableColumnEnum_has_next>;<#else>,</#if>
        </#list>
    </#if>

    @ApiModelProperty("key")
    private String key;

    @ApiModelProperty("描述")
    private String desc;

    ${tableColumn.changeEnumCode}(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    @Override
    public String getValue() {
        return this.key;
    }

    @Override
    public String getName() {
        return this.name();();
    }
}
